-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: Enable properties file in flank scripts #1450
Conversation
69a8f44
to
279f041
Compare
flank-scripts/src/main/kotlin/flank/scripts/config/FlankScriptsConfigs.kt
Outdated
Show resolved
Hide resolved
flank-scripts/src/main/kotlin/flank/scripts/config/FlankScriptsConfigs.kt
Outdated
Show resolved
Hide resolved
I think that this properties logic should be repository-wide (usable for flank, flank-scripts, integration tests etc). |
I really like the idea! This PR has already 30+ files changed. Let's make it in separate PR (PRs), please 🙏 |
ee996a9
to
97e57ff
Compare
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
Timestamp: 2021-01-11 07:04:44 |
b4adf9e
to
74b0399
Compare
@Mergifyio rebase |
Command
|
4258850
to
b61dbd8
Compare
I have read the CLA Document and I hereby sign the CLA |
@flank-it |
Integration tests succeed ✅ |
This PR is a feature, not a refactor because it is adding new options to flank-scripts. The refactor is a type of change that is not changing any external behaviour of the application. Will be good to have an issue linked to this PR with the described needs. |
Good point, I'll create one |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Has it been tested on Windows?
It hasn't. I don't have windows machine unfortunately :( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On Windows
- Build and run command works. Here is my output
ken=""
** Find previously checked commit
** Last workflow run:
name: Update dependencies
last run: 2021-01-06T10:05:04Z
url: https://github.com/Flank/flank/actions/runs/465789230
** Commit found:
SHA: 8de5b70bc8996687e097d604815018c7b60f29d3
timestamp: 2020-12-16T04:09:10Z
** Find latest commit
** Commit found:
SHA: 8de5b70bc8996687e097d604815018c7b60f29d3
timestamp: 2020-12-16T04:09:10Z
** No new commits since the last run
- properties saved
- second run contains
** No workflow run found for update_dependencies_and_client.yml
- Changing value of
sdk-check.workflow-filename
works and output contains** No workflow run found for update_dependencies_and_client.yml__
35eba64
to
d55f525
Compare
d55f525
to
0f53b52
Compare
8645d71
to
1fcde06
Compare
Enable properties file to be used when testing
flank-scripts
.Now you can use
flank-debug.properties
to replace some crucial settings (like repo). Custom properties are used only during local runtime (CI and tests use the defaults)Test plan
./gradlew build
/common/flank-debug.properties
should be createdjava -jar ./flank-scripts/build/libs/flank-scripts.jar shell firebase checkForSdkUpdate --github-token=[your gh token] --zenhub-token=""
flank-debug.properties
uncommentrepo.flank
and change to any random valuejava -jar...
** No workflow run found for update_dependencies_and_client.yml
repo.flank
and change value forsdk-check.workflow-filename
java -jar....
** No workflow run found for [name you changed]
Please, feel free to play with other scritps